package com.base.service.system.ao;

import com.base.core.head.ao.PageAO;
import com.gitee.magic.core.annotations.SqlCondition;
import com.gitee.magic.core.annotations.SqlCondition.SqlConditionType;
import com.gitee.magic.core.valid.annotation.BooleanValid;
import com.gitee.magic.core.valid.annotation.Length;
import com.gitee.magic.core.valid.annotation.number.LongValid;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 用户列表
 *
 * @author Start
 */
@Getter@Setter@ToString
public class UserPageAO extends PageAO {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Schema(description="userId")
	@LongValid
    private Long id;
	
	@Schema(description="账号")
    @Length(max = 32)
    private String userName;
	
	@SqlCondition({SqlConditionType.LIKE})
	@Schema(description="姓名")
    @Length(max = 32)
    private String name;
    
	@Schema(description="是否禁用")
	@BooleanValid
    private Boolean disable;

}
